package com.kedacom.ctsp.authority.dto;

import com.kedacom.ctsp.web.dto.ImportDTO;
import lombok.Data;
import org.apache.commons.collections.map.HashedMap;

import java.util.Map;


/**
 * @author sunchenjie
 * @date 2017/12/23 0023
 */
@Data
public class PersonImportDTO extends ImportDTO {

    //    序号	警员编号	警员姓名	性别	所属单位编号	业务种类	警员类别
//1	012818	张三	男	1020
    public static String[] KEY_ARR = new String[]{"index", "code,", "sex", "departmentCode"};
    public static Map<String, String> headerMapper = new HashedMap() {{
        put("人员编号", "code");
        put("人员姓名", "name");
        put("性别", "sexFormat");
        put("所属单位编号", "departmentCode");
        put("手机号", "phone");
    }};
    public static Map<String, String> headerMapper_en = new HashedMap() {{
        put("OfficerCode", "code");
        put("Officer", "name");
        put("Gender", "sexFormat");
        put("DepartmentCode", "departmentCode");
        put("phone", "phone");
    }};
    private String id;
    private String code;
    private String name;
    private String phone;
    private Byte sex;
    // 男 女
    private String sexFormat;
    private String departmentId;
    private String departmentCode;
    private String remark;
}
